# Python 2.6.4
# Project Euler, Problem 31
# Copyright 2010 Talha Zaman

#coins = [1,2,5,10,20,50,100,200]
count = 0
m = 200
for a in xrange(m,-1,-200):
    for b in xrange(a,-1,-100):
        for c in xrange(b,-1,-50):
            for d in xrange(c,-1,-20):
                for e in xrange(d,-1,-10):
                    for f in xrange(e,-1,-5):
                        for g in xrange(f,-1,-2):
                            count+=1
print count
